<template>
    <div class = "comfirm_button">
      <el-button @click="clicked">{{text || '确认'}}</el-button>
    </div>
</template>
<script>
export default {
  props:["text"],
   data() {
      return {
        msg : "You press a button!"
      }
   },
   activated() {
   },
 watch: {
},
created(){
},
mounted(){
},
methods:{
  clicked(){
    this.$emit('clicked',this.msg);
  }
}


}
</script>
<style>
  .comfirm_button{
    color: #008800;
  }
</style>
